﻿using BySoft.Server.Common.Entity;
using BySoft.Server.Common.Schema;
using BySoft.Server.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;


//==================================================================================
//
//        Copyright (C) 2014-2016 SRC Studio   
//        All rights reserved
//
//        Filename :MaterialType
//
//        Created by Administrator at  2016-05-20 22:39:13
//        http://www.seven-rosy-clouds.com
//
//        Description :  
//
//        Change History :
//
//	Version    Date                      Author           Description  
// ----------------------------------------------------------------------------------
//  	1.0  2016-05-20 22:39:13        Administrator    Created.
//   
//
//===================================================================================

namespace BySoft.Server.Business
{

    public partial class  MdMaterialtype: BusinessEntityBase<MdMaterialtypeEntity>
    {
      public MdMaterialtype(){
         EntityTableProperty= new EntityProperty() { 
              TableName = "MD_MaterialType",
              IDString = "MaterialTypeID", 
              NameString = "MaterialTypeName" };

      }


      public static DataTable SelectList(string strMaterialTypeName, int pageIndex, int pageSize, out int count)
      {
          return MdMaterialtypeDA.SelectList(strMaterialTypeName, pageIndex, pageSize, out count);
      }
      public static DataTable SelectAll()
      {
          int count = 0;
          return MdMaterialtypeDA.SelectList("", 1, 1000, out count);
      }
    }
}
